FEXP Solver  1.0.0.0
ICFEXPNetNodeConnection Class Referenceabstract

Base network interface of a client node. More...

#include <FEXPNetworkInterface.h>

Inheritance diagram for ICFEXPNetNodeConnection:
Collaboration diagram for ICFEXPNetNodeConnection:

Public Member Functions

 ICFEXPNetNodeConnection (size_t node_id, std::string server_ip, size_t port)
 
virtual ~ICFEXPNetNodeConnection ()
 
virtual size_t GetId () const override
 
virtual void SetId (size_t id) override
 
std::string GetServerNodeIP ()
 
size_t GetCommPort ()
 
virtual void Run ()=0
 
virtual void Close ()=0
 
- Public Member Functions inherited from ICFEXPNetBase
virtual ~ICFEXPNetBase ()
 

Protected Member Functions

template<typename TInp , typename TFunc >
std::function< TFunc()> get_thread_functor (std::function< TFunc(TInp)> thread_fce, std::function< TInp()> input)
 

Protected Attributes

std::atomic_bool _connection_start
 

Detailed Description

Base network interface of a client node.

Constructor & Destructor Documentation

◆ ICFEXPNetNodeConnection()

ICFEXPNetNodeConnection::ICFEXPNetNodeConnection ( size_t  node_id,
std::string  server_ip,
size_t  port 
)

◆ ~ICFEXPNetNodeConnection()

virtual ICFEXPNetNodeConnection::~ICFEXPNetNodeConnection ( )
inlinevirtual

Member Function Documentation

◆ Close()

◆ get_thread_functor()

template<typename TInp , typename TFunc >
std::function< TFunc()> ICFEXPNetNodeConnection::get_thread_functor ( std::function< TFunc(TInp)>  thread_fce,
std::function< TInp()>  input 
)
protected

◆ GetCommPort()

size_t ICFEXPNetNodeConnection::GetCommPort ( )
inline

◆ GetId()

virtual size_t ICFEXPNetNodeConnection::GetId ( ) const
inlineoverridevirtual

Implements ICFEXPNetBase.

◆ GetServerNodeIP()

std::string ICFEXPNetNodeConnection::GetServerNodeIP ( )
inline

◆ Run()

◆ SetId()

virtual void ICFEXPNetNodeConnection::SetId ( size_t  id)
inlineoverridevirtual

Implements ICFEXPNetBase.

Member Data Documentation

◆ _connection_start

std::atomic_bool ICFEXPNetNodeConnection::_connection_start
protected

The documentation for this class was generated from the following files: